package com.habo.entity;

import java.util.Date;

/**
 * 微博实体类
 * Created by jiuyou on 2017/3/27 0027.
 */
public class WeiBo {
    private int wbid;//微博id
    private String wbcontent;//微博内容
    private String wbpicture;//图片
    private Date wbtime;//发送时间
    private int wbtop;//（0表示不置顶，1表示置顶）置顶先后顺序
    private int wbpermission;//（0表示公开，1表示只对朋友）
    private int wbpraise;//点赞数量（初始值为0）
    private User user;//外键关联user.U_id;

    @Override
    public String toString() {
        return "WeiBo{" +
                "wbid=" + wbid +
                ", wbcontent='" + wbcontent + '\'' +
                ", wbpicture='" + wbpicture + '\'' +
                ", wbtime=" + wbtime +
                ", wbtop=" + wbtop +
                ", wbpermission=" + wbpermission +
                ", wbpraise=" + wbpraise +
                ", user=" + user +
                '}';
    }

    public WeiBo() {
    }

    public WeiBo(String wbcontent, String wbpicture, Date wbtime, int wbtop, int wbpermission, int wbpraise, User user) {

        this.wbcontent = wbcontent;
        this.wbpicture = wbpicture;
        this.wbtime = wbtime;
        this.wbtop = wbtop;
        this.wbpermission = wbpermission;
        this.wbpraise = wbpraise;
        this.user = user;
    }

    public WeiBo(int wbid, String wbcontent, String wbpicture, Date wbtime, int wbtop, int wbpermission, int wbpraise, User user) {

        this.wbid = wbid;
        this.wbcontent = wbcontent;
        this.wbpicture = wbpicture;
        this.wbtime = wbtime;
        this.wbtop = wbtop;
        this.wbpermission = wbpermission;
        this.wbpraise = wbpraise;
        this.user = user;
    }

    public int getWbid() {

        return wbid;
    }

    public void setWbid(int wbid) {
        this.wbid = wbid;
    }

    public String getWbcontent() {
        return wbcontent;
    }

    public void setWbcontent(String wbcontent) {
        this.wbcontent = wbcontent;
    }

    public String getWbpicture() {
        return wbpicture;
    }

    public void setWbpicture(String wbpicture) {
        this.wbpicture = wbpicture;
    }

    public Date getWbtime() {
        return wbtime;
    }

    public void setWbtime(Date wbtime) {
        this.wbtime = wbtime;
    }

    public int getWbtop() {
        return wbtop;
    }

    public void setWbtop(int wbtop) {
        this.wbtop = wbtop;
    }

    public int getWbpermission() {
        return wbpermission;
    }

    public void setWbpermission(int wbpermission) {
        this.wbpermission = wbpermission;
    }

    public int getWbpraise() {
        return wbpraise;
    }

    public void setWbpraise(int wbpraise) {
        this.wbpraise = wbpraise;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}